]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Remove some dead code
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 26 Apr 2013 01:16:33 +0000 (21:16 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 26 Apr 2013 16:16:05 +0000 (12:16 -0400)
We cannot possibly reach createActiveConnectionItem unless we have
an active network, so the plain unreative menu item cannot ever
be created.

https://bugzilla.gnome.org/show_bug.cgi?id=698918

js/ui/status/network.js

index 9eb811fcd1551d60e72493e4d76d82c224b1d20b..3f086b39f86c2c4e00591d15c5e605e8083337c0 100644 (file)
@@ -1341,13 +1341,8 @@ const NMDeviceWireless = new Lang.Class({
         else
             title = _("Connected (private)");
 
-        if (this._activeNetwork)
-            this._activeConnectionItem = new NMNetworkMenuItem(this.device.active_access_point, undefined,
-                                                               { reactive: false });
-        else
-            this._activeConnectionItem = new PopupMenu.PopupImageMenuItem(title,
-                                                                          'network-wireless-connected-symbolic',
-                                                                          { reactive: false });
+        this._activeConnectionItem = new NMNetworkMenuItem(this.device.active_access_point, undefined,
+                                                           { reactive: false });
         this._activeConnectionItem.setOrnament(PopupMenu.Ornament.DOT);
     },